<?php
use Faker\Generator as Faker;

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(\App\Models\Panx\DeviceSpec::class, function (Faker $faker) {
    // numberBetween 生成的是整数，不是小数
    return [
        'code'              => $this->faker->name,

        'eyelash_threshold' => $faker->randomFloat(2, -1, 1),
        'eyelash_length'    => $faker->randomFloat(2, 0, 1),
        'pupil_size'        => $faker->randomFloat(2, 0, 1),
        'eyeshadow_bright'  => $faker->randomFloat(2, 1, 20),
        'beautifulness'     => $faker->randomFloat(2, 0, 1),
        'whiteness'         => $faker->randomFloat(2, 2, 10),
        'lip_feather'       => $faker->randomFloat(2, 0.1, 2),
        'eyebrow_height'    => $faker->randomFloat(2, 0.1, 0.5),
        'eyebrow_width'     => $faker->randomFloat(2, 0, 0.5),
    ];
});
